<?php

// if (!defined('BASEPATH'))
// 	exit('No direct script access allowed');

class User extends CI_Model{

	function __construct(){

		parent::__construct();

	}

	function read($id){
		$this->load->database ();
		//$query = $this->db->get('j_user',$id);
		$rs = $this->db->simple_query("select * from j_user limit 1");
		$result = $rs->fetchAll();
		return $result;//这里返回的是一个数组，可以通过$query['id'],$query['title']//进行访问

	}

	
	

}